from django.urls import path
from .views import GoodsCategoryAPIView, GoodsDetailAPIView, GoodsSearchAPIView

urlpatterns = [
    path('<int:category_id>/<int:page_id>', GoodsCategoryAPIView.as_view(), name='goods_category'),
    path('<int:sku_id>/', GoodsDetailAPIView.as_view(), name='goods_detail'),
    path('<str:keyword>/<int:page>/', GoodsSearchAPIView.as_view(), name='goods_search')
]